package com.example.controller;

import com.example.service.RabbitService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @ClassName TestController
 * @Description
 * @Author Yin
 * @Date 2021/4/12 13:55
 * @Version 1.0
 */
@RestController
public class TestController {
    @Autowired
    RabbitService rabbitService;

    @RequestMapping("test")
    void test(String msg){
        rabbitService.sendMsg(msg);
    }
}
